#ifndef HAIKUOS_INCLUDE_POSIX_SYS_CDEFS_H
#define HAIKUOS_INCLUDE_POSIX_SYS_CDEFS_H

#ifndef __THROW
#define __THROW
#endif // throw

#ifndef __P
#define __P(s) s
#endif // p

#ifndef __CONCAT
#define __CONCAT(x, y) x ## y
#endif // concat

#ifndef __STRING
#define __STRING(x) #x
#endif // string

#if defined(__cplusplus)
// scope extern c
#define __BEGIN_DECLS extern "C" {
#define __END_DECLS };
#else
#define __BEGIN_DECLS
#define __END_DECLS
#endif // cplusplus 

#define __dead
#define __dead2

#ifndef __weak_reference
#define __weak_reference(sym, alias) \
    __asm__(".weak", #alias);        \
    __asm__(".equ", #alias "," #sym)
#endif



#endif // header file protect
// END: CODEREVIEW: